<extend name="Base/common"/>
<block name="workclass">
    <div class="worker-detail">
</block>
<block name="body">
    <div class="content">
            <div class="crumbs">
                <a href="{:U('worker/lists')}">推荐项目</a>
                <i class="iconfont icon-jiantou"></i>
                <span>项目详情</span>
            </div>
            <div class="service-info box">
                <div class="name">{$info.name|default='名称暂未确定'}</div>
                <div class="type">
                    <span><i class="iconfont icon-detail-category"></i>&nbsp;雇主类型&nbsp;&nbsp;</span>
                    <a><if condition="$v['type'] eq 1">个人<elseif condition="$v['type'] eq 2"/>设计院<else/>公司</if></a>
                </div>
                <div class="info">
                    <span><i class="iconfont icon-calendar"></i>&nbsp;联系人&nbsp;&nbsp;</span>
                    <a>{$info.linkname|default='匿名'}</a>
                </div>
                <div class="info">
                    <span><i class="iconfont icon-calendar"></i>&nbsp;手机&nbsp;&nbsp;</span>
                    <a href="tel:{$v.linknum}">{$info.linknum|default='未填写'}</a>
                </div>
                <div class="info info-tag">
                    <span><i class="iconfont icon-tag"></i>&nbsp;预算&nbsp;&nbsp;</span>
                    <a>{$info.budget|default='面议'}元</a>
                </div>
                <div class="info">
                    <span><i class="iconfont icon-calendar"></i>&nbsp;期望周期&nbsp;&nbsp;</span>
                    <a>
                        <if condition="$info['duration'] eq 1">一周内
                            <elseif condition="$info['duration'] eq 2"/>一月内
                            <elseif condition="$info['duration'] eq 3"/>三月内
                            <elseif condition="$info['duration'] eq 4"/>半年内
                            <else/>不限时间
                        </if>
                    </a>
                </div>
                <div class="info">
                    <span><i class="iconfont icon-speed"></i>&nbsp;应征人数&nbsp;&nbsp;</span>
                    <a>{$info.bidnum|default=0}</a>
                </div>
                <div class="info">
                    <span><i class="iconfont icon-time"></i>&nbsp;创建时间&nbsp;&nbsp;</span>
                    <a>{$info.create_time|date='Y-m-d H:i:s', ###}</a>
                </div>
                <div class="service-info box">
                    <div class="name">项目需求描述</div>
                    <div class="text">{$info.desc|default='无描述'}</div>
                </div>
                <div class="pm-info">
                    <div class="my-bid">报价剩余时间 <div class="my-price">{:formatSecond($info['bidtime'])}</div> </div>
                    <if condition="$info['duid'] eq $user_id">
                        <eq name="info.bidstate" value="1">
                            <div class="btn over">已标注结束</div>
                            <else/>
                            <a class="confirm" href="{:U('Worker/done', [ 'pid' => $info['id'] ] )}">
                                <div class="btn btn-done" id="done-pro">标注完成</div>
                            </a>
                        </eq>
                    <elseif condition="$hasbid eq 1"/>
                        <div class="btn over">已报价，请等待客户审核</div>
                        <else/>
                        <eq name="info.bidtime" value="0">
                            <div class="btn over">报价结束</div>
                            <else/>
                                <if condition="$user_role neq 'jia'">
                                    <a href="{:U('Worker/quotes', [ 'pid' => $info['id'] ] )}">
                                        <div tongji="btn-bid-0001PGZGDM5DJ0DI" class="btn btn-tongji">马上报价</div>
                                    </a>
                                    <else/>
                                    <div class="btn over">请以人才身份登陆</div>
                                </if>
                        </eq>
                    </if>
            </div>
        </div>
    </div>
</block>
<block name="script">
<script type="text/javascript">
    //'index-nav-show'
    (function() {
        var headerMenu = $('.header-menu');
        $('.icon-nav-menu').click(function(){
            headerMenu.addClass('menuShow');
        });
        $('.icon-nav-close').click(function(){
            headerMenu.removeClass('menuShow');
        });

        var setHeader = function() {
            var st = $(window).scrollTop();
            if(st > 0) {
                $('.header-pc').removeClass('header-transparent');
            } else {
                $('.header-pc').addClass('header-transparent');
            }
        };
        setHeader();
        $(window).scroll(function() {
            setHeader();
        });
    })();
</script>
</block>